//
//  CPView.swift
//  Bee
//
//  Created by zhujinhui on 15/12/30.
//  Copyright © 2015年 kyson. All rights reserved.
//

import UIKit

class CPView: UIView {

    static func loadFromXib()->CPView {
        let className = NSStringFromClass(self).componentsSeparatedByString(".").last
        
        let views = NSBundle.mainBundle().loadNibNamed(className, owner: nil, options: nil)
        return views.first as! CPView;
    }

}
